package com.ke.jun.bg.testpetpackmvvm.app.weight.banner

import android.view.View
import com.ke.jun.bg.testpetpackmvvm.R
import com.zhpan.bannerview.BaseBannerAdapter

class WelcomBannerAdapter:BaseBannerAdapter<String,WelcomBannerViewHolder>() {
    override fun createViewHolder(itemView: View, viewType: Int)= WelcomBannerViewHolder(itemView)
    override fun onBind(
        holder: WelcomBannerViewHolder?,
        data: String?,
        position: Int,
        pageSize: Int,
    ) {
        holder?.bindData(data,position, pageSize)
    }

    override fun getLayoutId(viewType: Int)=R.layout.banner_itemwelcome
}